#include <iostream>
#include <cmath>
using namespace std;
int main()
{
	int t;
	cin >> t;
	long long a,b,c,e,f,g;
	while(t--)
	{
		cin >> a >> b >> c;
		long long max=a;
		if(a>=b&&a>=c)
		{
			max=a;
		}
		else if(b>=a&&b>=c)
		{
			max=b;
		}
		else if(c>=b&&c>=a)
		{
			max=c;
		}
		
		
		if(a==b&&b==c)
		{
			cout << 1 << " " << 1 << " " << 1 << endl;
			continue;
		}
		else if((a==b&&b!=c&&b==max)||(a==c&&c!=b&&c==max)||(b==c&&c!=a&&b==max))
		{
			cout << max-a+1 << " " << max-b+1 << " " << max-c+1 << endl;
		}
		else
		{
			if(max==a)
		    {
			    cout << max-a << " " << max-b+1 << " " << max-c+1 << endl;
			    continue;
		    }
		    else if(max==b)
		    {
			    cout << max-a+1 << " " << max-b << " " << max-c+1 << endl;
			    continue;
		    }
		    else if(max==c)
		    {
			    cout << max-a+1 << " " << max-b+1 << " " << max-c << endl;
			    continue;
		    }
		}
	}
	return 0;
}
